package main

import (
	"fmt"
	gobmi "github.com/armstrongli/go-bmi"
)

// import "github.com/armstrongli/go-bmi"



func main() {
	// gobmi.BMI 和 gobmi.CalcFatRate 增加 fmt 打印
	// 调用 示例 1
	fmt.Println("Week5 study work fatRate1 ")

	fmt.Println("Week5 FatRate vendor example 1")
	bmiDemo, _ := gobmi.BMI(60, 170)
	fmt.Println("bmiDemo:", bmiDemo)

	fatRateDemo := gobmi.CalcFatRate(bmiDemo, 30, "1")
	fmt.Println("fatRateDemo:", fatRateDemo)

	// 调用 示例 2
	fmt.Println("Week5 FatRate vendor example2 ")
	weight2 := 65.5
	height2 := 177.3
	bmi2, _ := gobmi.BMI(weight2, height2)
	age2 := 28
	var sex2 string = "0"
	fatRate2 := gobmi.CalcFatRate(bmi2, age2, sex2)
	fmt.Println("Example 2 bmi2:", bmi2, " fatRate2:", fatRate2)




}
